package org.dromara.germbank.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import org.hibernate.validator.constraints.Length;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 医生表
 * 数据库表名：bus_partner_doctor
 */
@Data
@TableName("bus_partner_doctor")
public class BusPartnerDoctor implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableField("member_id")
    @NotBlank(message = "成员唯一编号不能为空")
    @Size(max = 32, message = "成员唯一编号长度不能超过32")
    @Length(max = 32, message = "成员唯一编号长度不能超过32")
    @Schema(description = "成员唯一编号，如 DOCTOR-20240528-001", requiredMode = Schema.RequiredMode.REQUIRED)
    private String memberId;

    @TableField("name")
    @NotBlank(message = "姓名不能为空")
    @Size(max = 50, message = "姓名长度不能超过50")
    @Length(max = 50, message = "姓名长度不能超过50")
    @Schema(description = "姓名", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @TableField("mobile")
    @NotBlank(message = "手机号不能为空")
    @Size(max = 20, message = "手机号长度不能超过20")
    @Length(max = 20, message = "手机号长度不能超过20")
    @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String mobile;

    @TableField("title")
    @NotBlank(message = "职位不能为空")
    @Size(max = 50, message = "职位长度不能超过50")
    @Length(max = 50, message = "职位长度不能超过50")
    @Schema(description = "职位", requiredMode = Schema.RequiredMode.REQUIRED)
    private String title;

    @TableField("clinic_name")
    @NotBlank(message = "所在诊所名称不能为空")
    @Size(max = 120, message = "所在诊所名称长度不能超过120")
    @Length(max = 120, message = "所在诊所名称长度不能超过120")
    @Schema(description = "所在诊所名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String clinicName;

    @TableField("display_status")
    @NotBlank(message = "前端可见性不能为空")
    @Size(max = 10, message = "前端可见性长度不能超过10")
    @Length(max = 10, message = "前端可见性长度不能超过10")
    @Schema(description = "前端可见性：SHOW/HIDDEN", requiredMode = Schema.RequiredMode.REQUIRED)
    private String displayStatus;

    @TableField("create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField("update_time")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @TableField("del_flag")
    @Schema(description = "删除标志（0存在 1删除）")
    private Integer delFlag;


}
